import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:industry_net/base/common/colors_util.dart';
import 'package:industry_net/base/common/img_util.dart';
import 'package:industry_net/base/common/route/routes.dart';
import 'package:industry_net/base/common/size_fit.dart';
import 'package:industry_net/base/common/text_util.dart';
import 'package:industry_net/base/component/component.dart';

class FindBackSuccessPage extends StatelessWidget {
  const FindBackSuccessPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: presentAppBar(context),
        backgroundColor: ColorsUtil.white,
        body: Padding(
          padding: EdgeInsets.symmetric(horizontal: 31.w),
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.center,
            children: [
              SizedBox(
                height: 51.w,
              ),
              Image.asset(
                'icon_success.png'.imgPathMe,
                width: 130.w,
                height: 126.w,
              ),
              SizedBox(
                height: 27.w,
              ),
              Text(
                '密码找回成功',
                style: pfSCStyle(color: ColorsUtil.title, fontSize: font17),
              ),
              SizedBox(
                height: gap10,
              ),
              Text(
                '密码已成功找回，快去登录试试吧~',
                style:
                    pfMediumStyle(color: ColorsUtil.content, fontSize: font14),
              ),
              SizedBox(
                height: 73.w,
              ),
              ExpandedButton(
                text: '返回登录',
                onPressed: () {
                  Get.offNamedUntil(RouterPath.login, (route) => true);
                },
              )
            ],
          ),
        ));
  }
}
